package com.qiandao.xuexitong.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qiandao.xuexitong.dto.ClassroomListDTO;
import com.qiandao.xuexitong.dto.CreateAttendanceTaskDTO;
import com.qiandao.xuexitong.entity.Classroom;

import java.util.List;

/**
 * 班级服务接口
 */
public interface ClassroomService extends IService<Classroom> {
    
    /**
     * 创建班级
     */
    void createClassroom(Long teacherId, String name, String code);
    
    /**
     * 获取班级列表
     */
    IPage<ClassroomListDTO> getClassroomList(Long teacherId, Page<ClassroomListDTO> page);
    
    /**
     * 添加学生到班级
     */
    void addStudentsToClassroom(Long teacherId, Long classroomId, List<Long> studentIdList);
    
    /**
     * 创建签到任务
     */
    void createAttendanceTask(Long teacherId, CreateAttendanceTaskDTO dto);

    /**
     * 获取学生所在的班级列表
     * @param studentId 学生ID
     * @return 班级列表
     */
    List<Classroom> getStudentClassrooms(Long studentId);
} 